package org.mengyun.tcctransaction;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by changmingxie on 10/25/15.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.METHOD })
public @interface Compensable {
    String confirmMethod() default "confirm";

    String cancelMethod() default "cancel";

    boolean hasRootConfirmMethod() default true;
    boolean hasRootCancelMethod() default true;
}